import request from '@/api/request'

export function apiMenuList(data) {
  return request({
    url: '/menu/list',
    method: 'post',
    data,
  })
}

export function apiMenuTree(data) {
  return request({
    url: '/menu/tree',
    method: 'post',
    data,
  })
}

export function apiRouteList(params) {
  return request({
    url: '/route/list',
    method: 'get',
    params,
  })
}

export function apiRouteTree(params) {
  return request({
    url: '/route/tree',
    method: 'get',
    params,
  })
}
